From 8cdbee7fd23ff0375e385ee74f13429fd6520706 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 19 Mar 2013 19:40:30 +0000 Subject: [PATCH] window: Use update_window_buttons to hide title on fullscreen The function update_window_buttons shows or hides the title header after it has finished updating the visibility of the various buttons. Unfortunately this conflicted with the hiding of the title done when going fullscreen. This solves the problem and fixes the rendering of fullscreen applications by using update_window_buttons to control the visibility of the box in the fullscreen case. --- gtk/gtkwindow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 21d469725e..712721010c 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4997,6 +4997,7 @@ update_window_buttons (GtkWindow *window) if (priv->decorated && priv->client_decorated && + !priv->fullscreen && priv->title_box != NULL) { gchar *layout_desc; @@ -6260,8 +6261,6 @@ gtk_window_state_event (GtkWidget *widget, { priv->fullscreen = (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0; - if (priv->title_box) - gtk_widget_set_visible (priv->title_box, !priv->fullscreen); } if (event->changed_mask & (GDK_WINDOW_STATE_FULLSCREEN | GDK_WINDOW_STATE_MAXIMIZED)) -- 2.30.2